package com.ht.right.dao.impl;

import java.util.List;

import com.ht.right.dao.WorkFlowDao;
import com.ht.right.entity.WorkFlow;

public class WorkFlowDaoImpl extends BaseDaoImpl<WorkFlow>  implements WorkFlowDao {

	@Override
	public List<WorkFlow> findAllWF() {
		String hql=" from WorkFlow ";
		return super.find(hql);
	}

	@Override
	public WorkFlow findWorkFlowByMenuId(String menuId) {
		String hql=" from WorkFlow wf where wf.menu.uuid='"+menuId+"'";
		return super.get(hql, new String[]{});
	}

}
